Move the Save button right under the options.

It's nice for each Agent to have a good, detailed description, but
currently the Save button will be gone too far below when the
description is very long in height.

Akinori MUSHA преди 10 години
родител
ревизия
381a338c6c
променени са 1 файла, в които са добавени 4 реда и са изтрити 7 реда
  1. 4 7
      app/views/agents/_form.html.erb

+ 4 - 7
app/views/agents/_form.html.erb

@@ -86,6 +86,10 @@
86 86
               <%= Utils.jsonify((@agent.new_record? && @agent.options == {}) ? @agent.default_options : @agent.options) %>
87 87
             </textarea>
88 88
           </div>
89
+
90
+          <div class="form-group">
91
+            <%= f.submit "Save", :class => "btn btn-primary" %>
92
+          </div>
89 93
         </div>
90 94
       </div>
91 95
     </div>
@@ -106,11 +110,4 @@
106 110
       </div>
107 111
     </div>
108 112
   </div>
109
-
110
-  <div class='row'>
111
-    <div class="col-md-12">
112
-      <%= f.submit "Save", :class => "btn btn-primary" %>
113
-    </div>
114
-  </div>
115
-      
116 113
 <% end %>